package java基础.operator;

/**
 * @projectName: JAVA编程
 * @package: operator
 * @className: Demo02
 * @author: IT_Jay
 * @description: TODO
 * @date: 2021/11/17 18:59
 */
public class Demo02 {

    public static void main(String[] args) {

    long a = 12341414141151454L;
    int b = 123;
    short c = 10;
    byte d = 8;

        System.out.println(a+b+c+d);   //Long
        System.out.println(b+c+d);      //Int
        System.out.println(c+d);        //Int
        System.out.println((double) c+d);//Double
        //System.out.println((String) (c+d));  //不可将Int型转换(cast)为String型
    }
}
